/*
 * Xmlizable.java
 *
 * Created on 18 de julio de 2007, 17:15
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package xml;

import org.w3c.dom.Document;
import org.w3c.dom.Node;

/**
 *
 * @author mariano
 */
public abstract class Xmlizable {
    public Node toXml()
    {
        return toXmlColeccion().toXml();
    }
    
    public Node toXml( Document doc )
    {
        return toXmlColeccion().toXml( doc );
    }
    
    public String toXmlString()
    {
        return toXmlColeccion().toString();
    }
    
    public abstract xml.Coleccion toXmlColeccion();
}
